/*
 * stm32_jy901.h
 *
 *  Created on: 2015年8月12日
 *      Author: fc
 */

#ifndef STM32_JY901_H_
#define STM32_JY901_H_
#include <misc.h>
#include <stm32f10x.h>
#include <stm32f10x_rcc.h>
#include <stm32f10x_usart.h>
#include <stm32f10x_gpio.h>
#include "stm32_usart1.h"
typedef struct{
	int16_t x;
	int16_t y;
	int16_t z;
}Vector;

typedef struct{
	Vector speed;
	Vector angle;
}Jy901Struct;

void stm32_jy901_init();
Jy901Struct* stm32_jy901_get();

#endif /* STM32_JY901_H_ */
